<template>
    <div>
<el-breadcrumb>
  <el-breadcrumb-item v-for="(item,index) in breadlist" :key="item.path">
    <router-link to="/welcome" v-if="index==0">
    {{item.meta.title}}
    </router-link>
    <span v-else>{{item.meta.title}}</span>
  </el-breadcrumb-item>
</el-breadcrumb>
    </div>
</template>

<script setup>
import {useRoute} from 'vue-router'
import{computed}from 'vue'
const route=useRoute()
// console.log(route);
const breadlist=computed(()=>{
  
    return route.matched
})
</script>

<style lang="scss" scoped>

</style>